package cn.tedu.ivos.geofence.pojo.vo;

import cn.tedu.ivos.vehicle.pojo.vo.VehicleVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author liyuehui
 * @time 2024/7/11 9:43
 */
@Data
public class GeofenceVO {
    @ApiModelProperty(value = "电子围栏id", example = "1")
    private Long id;
    @ApiModelProperty(value = "电子围栏名称", example = "围栏1")
    private String name;
    @ApiModelProperty(value = "电子围栏状态", example = "0")
    private String status;
    @ApiModelProperty(value = "电子围栏坐标点", example = "{\"type\":\"circle\",\"latitude\":\"40.02103907882358\",\"radius\":\"346\",\"longitude\":\"116.35887799248964\"}")
    private String position;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "围栏创建时间", example = "2024-07-11 09:40:00")
    private Date createTime;
    @ApiModelProperty(value = "围栏绑定的车辆总数", example = "3")
    private Integer totalNum;
    @ApiModelProperty(value = "围栏可用车辆数", example = "1")
    private Integer availableNum;
    @ApiModelProperty(value = "围栏绑定车辆列表")
    private List<VehicleVO> vehicleList;
}
